#!/usr/bin/python
# -*- coding: UTF-8 -*- 
 
def Triangles(n):
	retLst = []
	for x in range(1,n +1):
		tempLst = []
		for y in range(1,x +1):
			c = GetCombination(x-1,y-1)
			tempLst.append(int(c))
		retLst.append(tempLst)
	
	for x in retLst:
		print(x)

#return C(m,n)
def GetCombination(m,n):
	if(n == 0):
		return 1
	return m / float(n) * GetCombination(m-1,n-1)

if __name__ == '__main__':
	Triangles(10)